package main

import "fmt"

func main() {
	ret := getResult(5, 3, "+")
	fmt.Println("result=", ret)
}

func getResult(a float32, b float32, s string) (ret float32) {
	if s == "+" {
		ret = a + b
	} else {
		fmt.Println("不支持的操作符")
	}
	ret = a + b
	return
}
